package com.gg.registration.order.feignClient;

import com.gg.registration.vo.hosp.ScheduleOrderVo;
import com.gg.registration.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * Author：  chenjunjia
 * Date：    2022/4/23 18:36
 * WeChat：  China_JoJo_
 */
@FeignClient(value = "service-hospital",path = "/admin/hospital")
@Repository
public interface HospitalFeignClient {

    /**
     * 获取排班详情
     * @param scheduleId 排班id
     */
    @GetMapping("inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 获取签名信息
     * @param hoscode 医院编号
     */
    @GetMapping("inner/getSignInfoVo/{hoscode}")
    SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);

}
